package com.atguigu.yygh.cmnfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @version 1.0
 * @Author lj
 * @Date ${DATE}
 * @注释
 */
@FeignClient("service-cmn")
public interface DictFeignClient {

    @GetMapping("/admin/cmn/dict/getName/{value}/{dictCode}")
    public String getNameByValueAndDictCode(@PathVariable("value") String value, @PathVariable("dictCode") String dictCode);

    @GetMapping ("/admin/cmn/dict/getNameByValue/{value}")
    public String getNameByValue(@PathVariable("value") String value);

}